DRAFT: add test and scan for docker images #1348
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NOTE: I don't think this PR is ready, since the arm/v6 and arm/v7 images are failing pytest due to missing dependencies (gcc and friends). But it's pretty close.
Closes #1344 . Using a build-matrix for the platforms and this test, we test all the platforms in parallel. I also threw in container scanning.
Switch
pip install
to use either tags or commit shasNotably! This also changes the Dockerfile so that it accepts tags or commit-shas.
This lets you build the containers in CI every push for testing, which maybe resolves this problem?
Workflow run example
You can see the results in my workflow here. The commit history is different because I squashed this branch, also in the testing branch I had to change
github.com/simonw
togithub.com/blairdrummond
for the CI to pick up my git_sha.Why did the builds fail?
NOTE: The results of all the tests fail, but for different reasons! A few fail to install Rust, the amd64 passes the tests (phew!) but has critical CVEs which fail the container scan, the Arm/v6 and Arm/v7 seem to fail to install the test dependencies due to missing programs like
gcc
. (gcc
is not sufficient though, as this run indicates)